﻿using System;

class NumbersInRange
{
    static void Main()
    {
        int[] numbers = new int[10];

        for (int i = 0, min = 1; i < 10; i++)
        {
            numbers[i] = min = ReadNumber(min, 100);
        }

        Console.WriteLine("1 < {0} < 100", String.Join(" < ", numbers));
    }

    static int ReadNumber(int start, int end)
    {
        int number;
        try
        {
            number = int.Parse(Console.ReadLine());
        }
        catch (Exception e)
        {
            throw new InvalidNumberException("Invalid number entered.", e);
        }

        if (number <= start || number >= end)
        {
            throw new InvalidNumberException(String.Format("Number {0} is out of rage ({1},{2})", number, start, end));
        }

        return number;
    }
}

class InvalidNumberException : Exception
{
    public InvalidNumberException()
    {
    }

    public InvalidNumberException(string message)
        : base(message)
    {
    }

    public InvalidNumberException(string message, Exception innerException)
        : base(message, innerException)
    {
    }
}